<?php

if($this->user) {
	echo '<h2 style="color:blue">Hello ' . $this->user->full_name . 
		' &lt;' . $this->user->email . '&gt;.';
	echo '<h2 style="color:blue">Logout <a href="./user/logout">here</a>.</h2><br />';
} else {
	echo '<h2 style="color:blue">Login <a href="./user/login">here</a>.</h2><br />';
}
?>

<form method="post" action="<?php echo $this->url(array('controller'=>'test', 'action'=>'request-token')); ?>" enctype="application/x-www-form-urlencoded" id="console">
	<dl class="zend_form">
		<dt id="consumer_key-label"><label class="optional" for="consumer_key">Consumer Key</label></dt>
		<dd id="consumer_key-element">
			<input type="text" value="83c68884f8d642e498f78d7881343a6004ea920ac" 
				id="consumer_key" name="consumer_key" style="width: 300px">
		</dd>
		<dt id="consumer_secret-label"><label class="optional" for="consumer_secret">Consumer Secret</label></dt>
		<dd id="consumer_secret-element">
			<input type="text" value="3ec0ea8c65c87629ff92cff3f27f64c6" 
				id="consumer_secret" name="consumer_secret" style="width: 300px">
		</dd>		
		<dt id="submit-label">&nbsp;</dt>
		<dd id="submit-element">
			<input type="submit" class="submit" value="Create request token" id="submit" name="submit">
		</dd>
	</dl>
</form>